#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;

class Solution {
public:
    bool hash[14] = { 0 };
    bool IsContinuous(vector<int>& numbers) {
        int mx = 0, mn = 14;
        for (int num : numbers)
        {
            if (num)
            {
                if (hash[num]) return false;
                hash[num] = true;
                mx = max(mx, num);
                mn = min(mn, num);
            }
        }
        return mx - mn <= 4;
    }
};